package com.one.rope.mvp.basecore.bean;

import com.one.rope.mvp.basecore.exception.BaseException;

/**
 * @author Weijian.liu
 * @desc 基础业务提示信息
 * @date 2018/11/26
 */
public class BaseBusinessMessage {

  public static final int SUCCESS_CODE = 0;
  public static final String SUCCESS_MESSAGE = "success";

  public static final int FAILURE_CODE = BaseException.FAILURE_CODE;
  public static final String FAILURE_MESSAGE = "系统错误";
  public static final int USERFAILURE_CODE = BaseException.USERFAILURE_CODE;

  /**
   * 操作成功
   */
  public final static ResponseMessage SYSTEM_OK = ResponseMessage
      .instance(SUCCESS_CODE, SUCCESS_MESSAGE);
  /**
   * 系统错误
   */
  public final static ResponseMessage SYSTEM_ERROR = ResponseMessage
      .instance(FAILURE_CODE, FAILURE_MESSAGE);
  /**
   * 用户操作失败
   */
  public final static ResponseMessage USER_ERROR = ResponseMessage
      .instance(USERFAILURE_CODE, "操作失败");

}
